package org.hikari.qqbot.xiuxian.command;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.util.Date;

/**
 * created at 2024-12-18 02:06:01
 *
 * @author yinchao
 * @version 1.0
 **/
@Getter
@RequiredArgsConstructor
@AllArgsConstructor
public class StandardCommand implements ICommand {

    private final String command;
    private Date sendTime;
    private Long groupId;
    private Long userId;

    public StandardCommand(String command, Date sendTime) {
        this.command = command;
        this.sendTime = sendTime;
    }

    @Override
    public String toString() {
        return getCommand();
    }

    @Override
    public ICommand groupId(Long chatGroupId) {
        this.groupId = chatGroupId;
        return this;
    }

    @Override
    public ICommand userId(Long userId) {
        this.userId = userId;
        return this;
    }

    @Override
    public ICommand delay(Date date) {
        this.sendTime = date;
        return this;
    }

}
